package org.example.deal;

public class Deal {
    /*
    * 10.找出2011年发生的所有交易,并按交易额排序(从低到高)
    * */
    private Integer year;
    private long deal;

    private DealType dealType;



    public Deal(Integer year, long deal) {
        this.year = year;
        this.deal = deal;
    }

    public Deal(Integer year, long deal, DealType dealType) {
        this.year = year;
        this.deal = deal;
        this.dealType = dealType;
    }


    public DealType getDealType() {
        return dealType;
    }

    public void setDealType(DealType dealType) {
        this.dealType = dealType;
    }

    @Override
    public String toString() {
        return "Deal{" +
                "year=" + year +
                ", deal=" + deal +
                '}';
    }

    public Integer getYear() {
        return year;
    }

    public void setYear(Integer year) {
        this.year = year;
    }

    public long getDeal() {
        return deal;
    }

    public void setDeal(long deal) {
        this.deal = deal;
    }

}
